package com.yunlongcoding.cahuomarketing.result;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 *
 * 商城购物车订单最终支付后返回前端数据结果对象
 *
 * @author 王云龙
 * @version 1.0
 * @date 8/6/2018  9:56 AM
 */
public class OrderPayResult implements Serializable {

    private static final long serialVersionUID = -6104169216253170044L;

    // 会员id
    private Long memberId ;

    // 是否产生了微信支付标识 0：否 1是
    private int netWeChatPay ;

    // appId
    private String appId ;

    // 预支付交易会话标识（微信生成的预支付会话标识，用于后续接口调用中使用，该值有效期为2小时）
    private String prepayId ;

    // 商户API密钥（商户平台-账户中心-API安全中的密钥）MCH_API_SECRET_KEY
    private String mchApiSecretKey ;

    // 小程序前端签名，这个签名用于小程序端调用wx.requesetPayment方法
    private String appSign ;

    // 时间戳
    private String timeStamp ;

    // 随机生成32位字符串
    private String nonce_str ;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public int getNetWeChatPay() {
        return netWeChatPay;
    }

    public void setNetWeChatPay(int netWeChatPay) {
        this.netWeChatPay = netWeChatPay;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getPrepayId() {
        return prepayId;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    public String getMchApiSecretKey() {
        return mchApiSecretKey;
    }

    public void setMchApiSecretKey(String mchApiSecretKey) {
        this.mchApiSecretKey = mchApiSecretKey;
    }

    public String getAppSign() {
        return appSign;
    }

    public void setAppSign(String appSign) {
        this.appSign = appSign;
    }

    public String getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(String timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    @Override
    public String toString() {
        return "OrderPayResult{" +
                "memberId=" + memberId +
                ", netWeChatPay=" + netWeChatPay +
                ", appId='" + appId + '\'' +
                ", prepayId='" + prepayId + '\'' +
                ", mchApiSecretKey='" + mchApiSecretKey + '\'' +
                ", appSign='" + appSign + '\'' +
                ", timeStamp='" + timeStamp + '\'' +
                ", nonce_str='" + nonce_str + '\'' +
                '}';
    }
}
